package free;
import java.net.URL;
import java.io.File;

public class packagetest {
    public static void main(String[] args){
        Class<?> c = packagetest.class;
        Package ap = c.getPackage();
        String name = ap.getName();
        System.out.println(name);
        String dirname=name.replace(".", "/");
        System.out.println(dirname);
        URL url = ClassLoader.getSystemClassLoader().getResource(dirname);
        File file=new File(url.getPath());
        String files[] = file.list();
        for(String f:files){
            System.out.println(f);
        }
    }
}
